.pragma library
/*
This file is part of vlc-remote.

vlc-remote is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

vlc-remote is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with vlc-remote.  If not, see <http://www.gnu.org/licenses/>.
*/
var BROWSER_URL = "/requests/browse.xml?dir="
var ART_URL = "/art?id="
var STATUS_URL = "/requests/status.xml"
var PLAYLIST_URL = "/requests/playlist.xml"
var PLAY_URL = "/requests/status.xml?command=pl_play&id="
var PLAY_PAUSE_URL = "/requests/status.xml?command=pl_pause"
var PREVIOUS_URL = "/requests/status.xml?command=pl_previous"
var NEXT_URL = "/requests/status.xml?command=pl_next"
var FULLSCREEN_URL = "/requests/status.xml?command=fullscreen"
var DEC_VOL_URL = "/requests/status.xml?command=volume&val=-10"
var INC_VOL_URL = "/requests/status.xml?command=volume&val=%2B20"
var MUTE_URL = "/requests/status.xml?command=volume&val=0"
var SEEK_URL = "/requests/status.xml?command=seek&val=";
var RANDOM_URL = "/requests/status.xml?command=pl_random";
var REPEAT_URL = "/requests/status.xml?command=pl_repeat";
var LOOP_URL = "/requests/status.xml?command=pl_loop";
var IN_PLAY="/requests/status.xml?command=in_play&input=";
var PL_DELETE ="/requests/status.xml?command=pl_delete&id=";

function send(url)
{
    var xhr = new XMLHttpRequest();
    console.debug(url);
    xhr.open("GET", url, true);

    xhr.onreadystatechange = function() {
        if (xhr.readyState == xhr.DONE) {
        }
    }
    xhr.send(null);
}


